<template>
  <div id="app">
    <canvas-code
        :width="150"
        :height="50"
        :numLen="4"
        :lineLen="8"
        :dotLen="30"
        :angle="30"
        ref="canvas-code"
    />
  </div>
</template>

<script>
// import CanvasCode from "@/components/canvas-code";
export default {
  name: 'App',
  components: {
    // CanvasCode
  },
  mounted() {
    this.verifyCode();
  },
  methods: {
    verifyCode(){
      setInterval(()=>{
        this.$refs["canvas-code"].refreshCanvas();
      },3000)
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
